(unexec): Deal with .got, reinstating change from 25-08-1999.
authorRichard M. Stallman <rms@gnu.org>
Mon, 16 Sep 2002 15:28:25 +0000 (15:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 16 Sep 2002 15:28:25 +0000 (15:28 +0000)
src/unexelf.c

index cf3fc9d5bcd23839292f6b891affbce8a3890e54..affdbad196496ea1d04c200337c681c94e5f3eeb 100644 (file)
@@ -1012,6 +1012,8 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
                      ".lit4")
          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
                      ".lit8")
+         || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
+                     ".got")
          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
                      ".sdata1")
          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
@@ -1195,6 +1197,8 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
                          ".lit4")
              || !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
                          ".lit8")
+             || !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
+                         ".got")
              || !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
                          ".sdata1")
              || !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),